#VERSION=691  #euqt691.dll

#problem in release mode? didn't compile Qt in release mode?
#and why can't I set config in the main pro file?
#CONFIG *= release
#CONFIG -= debug 
#CONFIG *= debug_and_release

SYSTEM_QSCINTILLA	= 1
DEFINES += USE_SCINTILLA
include(../dll/qscintilla2.pri)
LIBS += -lqscintilla2

#qmake -r CONFIG+=debug doesn't override -=?

debug:ELIB=./debugsrc
release:ELIB=./releasesrc

DESTDIR = $$ELIB 

#TRANSLATIONS = _it.ts

QT *= script scripttools  network sql xml webkit opengl   #phonon
CONFIG *= uitools qt qtgui warn_on

#If you don't define QT_NO_DEBUG, failures will be detected 
#using Q_ASSERT() or Q_ASSERT_X() 

#have to set this up for any compiler later
#for minGW still debug but cuts size from 10meg to under 1M
release:QMAKE_LFLAGS		*=  -Wl,-s
debug:QMAKE_LFLAGS		*= #-Wl,-s

#show all warnings
release:QMAKE_CXXFLAGS		= -O2  -w
debug:QMAKE_CXXFLAGS		=  -g -O0 -WAll
#--disable-stdcall-fixup nodiff?    
#-pedantic Qt won't work  ISO C++ does not support `long long'


RESOURCES += res.qrc
HEADERS = utils.h euqt.h
SOURCES = euqt.cpp \
  utils.cpp \
    simplereceiver.cpp \
    simpleXml.cpp \
    simpleSQL.cpp \
    media.cpp \
    scriptengine.cpp

win32:RC_FILE = res.rc


CONFIG(debug, debug|release) {

    UIC_DIR = ../tmp/d/uic
    MOC_DIR =  ../tmp/d/moc
    OBJECTS_DIR = ../tmp/d/obj
    RCC_DIR = ../tmp/d/obj
     message(config options: debug)
}

CONFIG(release, debug|release) {

    UIC_DIR = ../tmp/r/uic
     MOC_DIR =  ../tmp/r/moc
    OBJECTS_DIR = ../tmp/r/obj
    RCC_DIR = ../tmp/r/obj
     message(config options: release)
}

macx {
  TEMPLATE=app
  TARGET =EuQt
}
else {
  TEMPLATE=lib
  TARGET =euqt
}


!build_pass:message(target  $$TARGET  $$TEMPLATE)

#defne a few words for version_info
